package aorise.com.frame.common;

import android.util.Base64;

public class BAST64Utils {
	// 将 str 进行 BASE64 编码 
	public static String encode(String str)
	{
		String enToStr = Base64.encodeToString(str.getBytes(), Base64.NO_WRAP);
		return enToStr;
	}
	//将str进行base64解密
	public static String decode(String str){
		String decodedString =new String(Base64.decode(str, Base64.NO_WRAP));
		return decodedString;
	}
}
